<?php
namespace User\Controller;
use Think\Controller;
/**
 * 邀请好友
 */
class InvitedController extends CkController {
    
    public function index(){
       $user= session("user");
       $data['uid']= $user['id'];
       $uid= de_crypt(I('get.uid'));
       $data['title']= "邀请好友";
       if(!empty($uid)){
          $data['user']= M('user')->field('nickname,avatar')->where(array('id'=>$uid))->find();
          if(empty($data['user']['avatar']))
          {
              $data['user']['avatar']='/Public/user/nopic.jpg';
          }
          if($data['user']['nickname']){
             $data['title'] ="我是".$data['user']['nickname']."我正在玩转发赚钱,邀请你加入,先发￥".C("REG_MONEY")."意思意思!";
          }else{
             $data['title'] ="我正在玩转发赚钱,邀请你加入,先发￥".C("REG_MONEY")."意思意思!";
          }  
       }
       $this->assign($data);
       $this->display();
    }


    
   
}